/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package entity;

import java.io.Serializable;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;

/**
 *
 * @author Aditya-Z
 */
@Entity
public class Akun implements Serializable {

    public String getGolongandarah() {
        return golongandarah;
    }

    public void setGolongandarah(String golongandarah) {
        this.golongandarah = golongandarah;
    }
    private static final long serialVersionUID = 1L;
    @Id
    @GeneratedValue(strategy = GenerationType.AUTO)
    private int id;
    private String username;
    private String umur;
    private String beratbadan;
    private String golongandarah;
    private String password;
    private String ulangiPassword;

    

  
    @Override
    public int hashCode() {
        int hash = 0;
        hash += (int) id;
        return hash;
    }

    public String getBeratbadan() {
        return beratbadan;
    }

    public void setBeratbadan(String beratbadan) {
        this.beratbadan = beratbadan;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getUlangiPassword() {
        return ulangiPassword;
    }

    public void setUlangiPassword(String ulangiPassword) {
        this.ulangiPassword = ulangiPassword;
    }

    public String getUmur() {
        return umur;
    }

    public void setUmur(String umur) {
        this.umur = umur;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof Akun)) {
            return false;
        }
        Akun other = (Akun) object;
        if (this.id != other.id) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "entity.Akun[ id=" + id + " ]";
    }
    
}
